package ImageLoader;
import javax.microedition.lcdui.Image;

/**
 * Contains functions to load and create an image from a source.
 */
public class ImageLoader {
	
	/**
	 * Loads a specific image from a source path.
	 * 
	 * @param s the source path
	 * @return the loaded image
	 */
	public final static Image load(String s) {
		try {
			return Image.createImage(s);
		} catch (Exception e) {
			System.out.println("Fehler beim Laden vom Bild:"+s);
		}
		return null;
	}
}
